<?php if (_session('user_type') == 'instructor') { ?>

<div id ="sidebar">
    <div class ="news">
        <ul>
            <li><a href ="<?php echo site_url('lesson/list_records/'.$group['group_id']) ?>" >Lessons</a></li>
            <li><a href ="<?php echo site_url('exam/list_records/'.$group['group_id']) ?>" >Exams/Activities</a></li>
            <li><a href ="<?php echo site_url('score/list_records/'.$group['group_id']) ?>" >Class Record</a></li>
            <li><a href ="<?php echo site_url('group/members/'.$group['group_id']) ?>" >Members</a></li>
            <li><a href ="<?php echo site_url('board/the_board/'.$group['group_id']) ?>" >Board</a></li>
            <li><a href ="<?php echo site_url('group/group_setting/'.$group['group_id']) ?>">Group Setting</a></li>
            <li><a href="<?php echo site_url('group/instructor_list') ?>">Exit</a></li>
        </ul>
    </div>
</div>

<?php } else { ?>

<div id ="sidebar">
    <div class ="news">
        <ul>
            <li><a href ="<?php echo site_url('lesson/list_records/'.$group['group_id']) ?>" >Lessons</a></li>
            <li> <a href ="<?php echo site_url('exam/list_records/'.$group['group_id']) ?>">Exams/Activities</a></li>
            <li><a href ="<?php echo site_url('score/view_myscore/'.$group['group_id']) ?>">Scores</a></li>
            <li><a href ="<?php echo site_url('board/the_board/'.$group['group_id']) ?>" >Board</a></li>
            <li><a href="<?php echo site_url('group/student_list') ?>">Exit</a></li>
        </ul>
    </div>
</div>

<?php }